package com.njtoyo.taxi.admin.rest.wrapper.business.ride;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.enums.AppointmentCallState;
import com.njtoyo.taxi.admin.mapper.master.enums.RealtimeCallCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Objects;

@Data
@ApiModel("呼叫订单模型")
public class CallWrapper extends Page<CallWrapper> {

    public CallWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty("行政区ID")
    private Long cantonId;

    private RealtimeCallCategory category;

    @ApiModelProperty(value = "状态0:waiting;1:pick;2:cancelled;3:covered")
    private AppointmentCallState state;

    private List<Long> cantonIds;

    private String mobileNumber;

    private Integer callId;
    private List<Long> callIds;

    private String plateNumber;
    private String startDate;
    private String endDate;

    private List<Long> companyIds;

}
